def print_func_name(func):
    def wrapper(*args, **keys):
        print(func.__name__)
        func(*args, **keys)

    return wrapper


@print_func_name
def say_hello(name):
    print(name, 'hello')


@print_func_name
def say_goodbye(name):
    print(name, 'goodbye')


say_hello('刘亦菲')
say_goodbye('前女友')
